package com.example.springbootest.enums;

/**
 * @author shiguorang
 * @version 1.0.0
 * @ClassName HttpStatusEnum
 * @Description 状态枚举
 * @createTime 2022年08月11日 14:16:00
 */
public enum HttpStatus {

    SUCCESS(200,"操作成功"),

    BAD_REQUEST(401,"参数列表错误"),

    NOT_FOUND(404,"资源，服务未找到"),

    ERROR(500, "操作失败");

    private Integer code;

    private String value;


    HttpStatus(int code, String value) {
        this.code = code;
        this.value = value;
    }

    public int getCode(){
        return this.code;
    }

    public String getValue(){
        return this.value;
    }
}
